#ifndef _SERIAL_H
#define _SERIAL_H

#define MAX_UART_NUM 4
//open the device for serial device, and configure for it
int startSerialPort(char * devName,int baudRate);
void * comRecvThreadProc(void * lpParam);

typedef struct _param_com
{
    int fd_uart[MAX_UART_NUM];
	int uartNum;
    char * buff;
    int fd_file;
}param_com;

int stopSerialPort(int *serialFds, int numFd);

typedef enum
{
    I_UART2,
	I_UART4
}enUartI;

void procStrFromUart2(char * buff, int sizeRecv, int fd_file);

extern int g_fd_uart4;


#endif
